﻿
@{ 
    Layout = null;
}
<html>
<head>
   <title>Index</title>
 
 <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/PageCreater/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/PageCreater/Scripts/PageCreater.js" type="text/javascript"></script>
<script type="text/javascript">
    var strColumn = "ID,编号,true,text,notnull,"
                        + "Account,账号,false,text,notnull,"
                        + "Name,姓名,false,text,notnull,"
                        + "IsActive,状态,false,text|激活!true|注销!false,notnull,"
                        + "Opreate,操作,false,null,null";
    var strOpreate = "修改,/User/Update,true,注销,/User/Logout,false";
    $(document).ready(function () {
        CreateIndexPage("/User/GetPaged", strColumn, strOpreate);

        $("#btsearch").click(function () {
            var c = $("#Account").val();
            if (c != "") {
                var re = /^[A-Za-z0-9]+$/;
                if (!re.test($("#Account").val())) {
                    alert("不能输入汉字");
                    $("#Account").focus();
                }
            }
            CreateIndexPage("/User/GetPageds?usernam=" + c + "", strColumn, strOpreate);
        });

    })
</script>
</head>

    <body>
      <div class="Content">
        <div id="Top">
            <div id="divCreateUrl">
                <p>
                    <a href="Create">新建</a>
                    <br />
                </p>
                @using (Html.BeginForm())
                { 
                    <center><p>账 号：@Html.TextBox("Account")&nbsp;&nbsp;&nbsp;<input type="button" value="查找" style="width:62px; height:21px" id="btsearch"/></p> </center>
                }
            </div>
        </div>
        <div id="tabInfo">
        </div>
        <div id="pageIndex" class="pageIndex" style="margin-top: 5px; float:left; width: 95%">
        </div>
        <div style="float:left" id="hang">
        
        </div>
    </div>
  
  </body>
</html>

